package cn.itcast.day01.demo04;

public class Demo02MethodOverloadSame {
    public static void main(String[] args) {
        byte a=10;
        byte b=20;
        System.out.println(isSame(a,b));
        System.out.println(isSame((short)20,(short)20));
        System.out.println(isSame(10,20));
        System.out.println(isSame(10l,10l));
    }
    public static boolean isSame(byte a,byte b){
        return a==b;
    }
    public static boolean isSame(short a,short b){
        return a==b;
    }
    public static boolean isSame(int a,int b){
        return a==b;
    }
    public static boolean isSame(long a,long b){
        return a==b;
    }
}
